<?php
include("./include/config.inc.php");
$menuArray = array();
$i = 0;
$selectMenu = "SELECT sliderId,menuId,sliderImg
                 FROM slider
                WHERE menuId = ".$_REQUEST['menuId'];
$selectMenuRes = mysql_query($selectMenu);
while($menuRow = mysql_fetch_array($selectMenuRes))
{
  $menuArray[$i]['sliderId']   = $menuRow['sliderId'];
  $menuArray[$i]['sliderImg'] = $menuRow['sliderImg'];
  $i++;
}

$smarty->assign("menuArray",$menuArray);
$smarty->display("setImage.tpl");
?>